package com.winter.controller;


import com.winter.component.TestUtils;
import com.winter.service.DefinedGridService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;


@Api("userSwagger相关")
@RestController
@RequestMapping(value = "/defgrid")
public class DefinedGridController {



    @Autowired
    private DefinedGridService definedGridService;

    @ResponseBody
    @RequestMapping(value = "/test-normal",method = RequestMethod.GET)
    public String test(){
        return definedGridService.definetest(); //常规调用 service
    }


    @ResponseBody
    @RequestMapping(value = "/test-static",method = RequestMethod.GET)
    public  String testxy(){

        return TestUtils.test();  //通过static 调用
    }

}
